package jin.chen.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tree_basic")
public class TreeBasicPojo {

    //id主键
    @Column(name = "id")
    private Integer id;

    //名称
    @Column(name = "name")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String name;

    //类型
    @Column(name = "type")
    private Integer type;

    //父级id
    @Column(name = "father_id")
    private Integer fatherId;

    //折叠或者展开
    @Column(name = "fold_open")
    private String foldOpen;

    //操作
    @Column(name = "operator")
    private String operator;

    //是否为父类节点, 1 --》父类    0 --》子类
    @Column(name = "isparent")
    private Integer isParent;

    //创建时间
    @Column(name = "create_time")
    private Date createTime ;

    //更新时间
    @Column(name = "update_time")
    private Date updateTime;

}
